<div class="content">

  <div class="left-content">
  
  	<div class="add-filter">
  
        <form action="#" method="post" enctype="multipart/form-data" name="addform" class="addform" id="editform">
            <div class="addform-row">
                <label>Pealkiri
                  <input name="title" type="text" class="input-field" id="title" />
                </label>
            </div>
            
            <!-- Tabhost start -->
             <div class="addform-tabhost">
               <ul>
                   
                 <?php foreach ($providers as $provider): ?>
                 <li name="<?php echo $provider->slug; ?>"><?php echo $provider->name; ?></li>
                 <?php endforeach; ?>
                 
               </ul>
             </div>	
             
            <?php foreach ($providers as $provider): ?>

             <!-- Tabhost container for #<?php echo $provider->slug; ?> start -->
             <div class="addform-tabhost-container" id="tabhost-tab-<?php echo $provider->slug; ?>">
             
           	   <div class="addform-tabhost-separator">
                    <label>
                        Kategooriad
                        <select name="categories-<?php echo $provider->slug; ?>" size="25" class="addform-tabhost-list filter-categories">
                          <?php $categories = $provider->getCategories();
                          foreach ($categories as $category): ?>
                            <option value="<?php echo $category->getID(); ?>"> <?php echo ucfirst($category->getTitle()); ?></option>
                          <?php endforeach; ?>
                        </select>
                  	</label>
                </div>	
                
               <div class="addform-tabhost-separator" id="parameters-<?php echo $provider->slug; ?>">
                   <div class="addform-message">Alustamiseks vali kategooria.</div>
               </div>	
               
             </div>	
             <!-- Tabhost container for #<?php echo $provider->slug; ?> end -->
             <?php endforeach; ?>
             
             <!-- Tabhost end -->
        
        	<div class="addform-row">
                <label>Intervall
                  (sekundites) - 
                  <a href="javascript:calcAndSetInterval(1);">Iga tund</a> | <a href="javascript:calcAndSetInterval(24);">Iga päev</a> | <a href="javascript:calcAndSetInterval(7 * 24);">Kord nädalas</a> | 
                  <a href="javascript:calcAndSetInterval(3.5 * 24);">Kaks korda nädalas</a>
                  <input name="interval" type="text" class="input-field" id="interval" value="3600" />
                </label>
            </div>
            
        </form>
            
    	<!-- core.js sisaldab click meetodit. Vormi postitamiseks muuda üleval action parameetrit. (Ilmselt peaks tühi olema) -->
        <span class="button form-button focused-button" id="edit-btn">Valmis</span>
        <span class="button form-button" onclick="resetForm($('form[name=addform]'));">Tühjenda väljad</span>
     </div>
     
  </div>
  
  
  <div class="right-content">
  
    <div class="right-navig-section">
    	<h2>Lisa uus jägija</h2>
    </div>
    
    <div class="right-navig-section">Vali sisallikas ja täpsusta otsinguparameetrid.</div>
   
  </div>
</div>

<?php echo $main_navigation; ?>
